<%@ page language="java" contentType="text/html;charset=utf-8"
	pageEncoding="utf-8"%>
<%@ page import="com.sms.homework.*"%>

<%--
	project/teacher/del-project.jsp
 --%>

<%
	String msg = "";
	String delid = request.getParameter("selectrows");
	String[] delID = delid.split(",");
	
	if(delID.length == 0) {
		msg = "error";
	} else {
		boolean isSuccess = Homework.deletework(delID);//is delete success?
		if(isSuccess) {
			msg = "ok";
		} else {
			msg = "error";
		}
	}
	
	msg = msg.replace("/rn/g", "");//去掉产生的换行
	out.clear();
	out.write(msg);
%>